#!/bin/sh
#
# 简单写一下脚本的功能。
#
#
#

if [ $# -ne 0 ]; then
	echo "Usage: this is a empty shell."
	exit
fi

workdir=~/workshop/gitee/3place/

cd $workdir

rm -f allbooks.md

for files in `find . |grep  -w index_books.md `
do
	echo $files  |awk -F\/ '{print "MERGING    " $2}'
	cat $files >>allbooks.md
done

echo "排序中..."
sort -g allbooks.md|uniq |sort -g>tmp.md

mv tmp.md alltimeline.md
